frame: Fix child allocation
authorTimm Bäder <mail@baedert.org>
Sat, 27 May 2017 15:31:05 +0000 (17:31 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:13 +0000 (21:27 -0400)
Don't add the parent's allocation from gtk_widget_get_allocation

gtk/gtkframe.c

index 2779900114b281b1fecbd1cb6ed2174d6bb981ea..c2f6cd49ea60a5bdf6f62c721fc21f98871a4de0 100644 (file)
@@ -695,8 +695,8 @@ gtk_frame_real_compute_child_allocation (GtkFrame      *frame,
   else
     height = 0;
 
-  child_allocation->x = allocation.x;
-  child_allocation->y = allocation.y + height;
+  child_allocation->x = 0;
+  child_allocation->y = height;
   child_allocation->width = MAX (1, allocation.width);
   child_allocation->height = MAX (1, allocation.height - height);
 }